package com.edu.compile;

import java.io.Serializable;

/**
 * 数据源
 */
public class DataSource implements Serializable {

    public DataSource(String ni, Integer t) {
        this.t = t;
        this.ni = ni;
    }

    /**
     * 数据源类型
     */
    private Integer t;
    /**
     * 节点id
     */
    private String ni;

    public Integer getT() {
        return t;
    }

    public void setT(Integer t) {
        this.t = t;
    }

    public String getNi() {
        return ni;
    }

    public void setNi(String ni) {
        this.ni = ni;
    }

    public static DataSource init(String ni, Integer t) {
        return new DataSource(ni, t);
    }
}
